home *** CD-ROM | disk | FTP | other *** search
- function format()
- {
- if(expa == undefined || expa == "")
- {
- expa = "0";
- }
- if(expb == undefined || expb == "")
- {
- expb = "0";
- }
- if(expc == undefined || expc == "")
- {
- expc = "0";
- }
- if(expd == undefined || expd == "")
- {
- expd = "0";
- }
- }
- this.createTextField("tempexp",this.getNextHighestDepth(),987,987,987,987);
- expshowfunc.onEnterFrame = function()
- {
- expper = _root.exps / _root.expmax * 100;
- exppers = _root.exps / _root.expmax;
- tempexp.text = expper;
- if(expper >= 10)
- {
- expa = tempexp.text.charAt(0);
- expb = tempexp.text.charAt(1);
- expc = tempexp.text.charAt(3);
- expd = tempexp.text.charAt(4);
- format();
- expshow = _root.exps + "[" + expa + "" + expb + "." + expc + "" + expd + "%]";
- }
- else if(expper >= 0 && expper < 10)
- {
- expa = tempexp.text.charAt(0);
- expb = tempexp.text.charAt(2);
- expc = tempexp.text.charAt(3);
- format();
- expshow = _root.exps + "[" + expa + "." + expb + "" + expc + "%]";
- }
- else
- {
- expshow = _root.exps + "[0%]";
- }
- _root.statmask.expbar._xscale = expper;
- };
-